package com.example.module_main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_main.R
import com.example.module_main.entity.HomeEntityItem


class HomeAdapter: BaseQuickAdapter<HomeEntityItem, BaseViewHolder>(R.layout.layout_home_notice)  {
    override fun convert(holder: BaseViewHolder, item: HomeEntityItem) {
        holder.setText(R.id.tt1,item.title)
        holder.setText(R.id.tt2,item.content)
        holder.setText(R.id.tt3,item.publishTime)
    }
}
